babl: add bitmask flags for meta-data about models
authorØyvind Kolås <pippin@gimp.org>
Mon, 26 Nov 2018 22:39:08 +0000 (23:39 +0100)
committerØyvind Kolås <pippin@gimp.org>
Mon, 26 Nov 2018 23:15:40 +0000 (00:15 +0100)
commit695284fa69abbe9c0bde4a3f6ebf5f0418468864
tree9f3546d54374d066cff68706ef618f0cf9ffc0b4
parent6b032aac30f798ff98731f3bdc85538b42c17147
babl: add bitmask flags for meta-data about models

Refactored from new API needed internally for knowing if a model is CMYK based
or not, this permits adding meta-data that can be quickly figured out in
possible fast code paths. The API is not complete, and it probably doesn't harm
to include as many features from different models as possible that fit in a
bitmask, adding the most important ones first and maintaining the order of the
enum will ensure API compatibility once it is in a release.
babl/babl-fish-reference.c
babl/babl-model.c
babl/babl-model.h
babl/babl.h
babl/base/model-cmyk.c
babl/base/model-gray.c
babl/base/model-rgb.c
babl/base/model-ycbcr.c